package ooday01;
/** 学生类的测试类 */
public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zs = new Student();

        //调用方法
        zs.study();
        zs.sayHi();
        zs.playWith("李小二");

        Student eg = new Student();
        eg.name = "二狗";
        eg.age = 38;
        eg.className = "jsd2408";
        eg.stuId = "911";

        eg.study();
        eg.sayHi();
        eg.playWith("张三桂");

        //1)创建了一个学生对象
        //2)给所有成员变量赋默认值
        Student zl = new Student();
        zl.study();
        zl.sayHi();
        zl.playWith("张隼");
    }
}
